package cn.dnf.pet.domain;

import cn.dnf.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class PetType extends BaseDomain {
    private String name;
    private String description;
    private String dirPath;
    private Long pid;

    //下级宠物类型
    //部门树最后一级没有数据就不显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<PetType> children = new ArrayList<>();
}
